changed date type from dato timestamp, fid bug with determinig insert vs update on first run app loads as expected
added new class to start working on messages