Added message table to database. Created tests.