adding database connection