title: PowerBuilder: Disconnect the database on idle
body: <p>I have an application in PowerBuilder, and many users keeping it open unused for hours.
  Sometimes, an operation forgets to commit; therefore, some table stay locked indefinitely, thus preventing everyone from working.
  I tried to put all the commits in place, but it is really difficult to debug this in such a big application.
  I would like to disconnect the database connection when the application is idle. This is not difficult, but my problem is, when the mouse or keyboard are touched, the application needs to re-open the connection. How do I do that? It is not acceptable to close the application every time it is idle.</p>