fix to sqlite3
fix empty db file setup