database connection problems solved