Fix the database initialization on views/load