switch db between sqlite3 and PostSQL