initialize sqlite3 database and change filesystem