fixed DB interface for the SQLite Version