[CH,MF] {test befor code} I32 - Created Tests for Local Database; Refactored Database, Contact and Msg classes