have database connection working