Fixed ErrorHandler
Made MessageHandler to user ErrorHandler instead of custom logger.
Added a stub for database handler