Introduced the singleton pattern for the database connection