preliminary database connection working