Implementing singleton pattern for database connection and wrapping database queries in transactions
Merge branch 'databasetransactions' into develop