update base app to use sqlite3