configure database connection