established a database connection