I converted the sqlite3 library to the one below in order to write the code asynchronously. Finally I implement a timeout.
function _timeOutTimer() { retu