Fixed database connection for local