Introduced a database connection factory.
User can now delete posts.