sample database connection code