Switching database to sqlite