local database connection working with simple example query