explicitly include db in establish_connection