Refactor projectsSqlite to init all tables in the database