Initialize database if not created