External initialization of database connection.