quick fix for database connection