Setup database connection.