Creating a database context and defining a Db connection factory