Fixed issues with db_communication. Interfaced with UI.