Two database connection methods