Updating DB actions for thread safety
Updating DB actions for thread safety
Database Services are now instantiated/Shutdown in the RMQListener instead of in the database classes. Additionally, MessageHandlers are now run as threads instead of processes such that the Database Service instances can be passed to them. This prevents conflicts that previously arose when attempting to create multiple Database Service instances to the same database when multiple messages were recieved quickly.
Replaced runHandler with runListener: runHandler ran MessageHandler and didn't do anything. runListener runs RMQListener which is useful.