updating database model with some requirements
Grabbing date and time object properly, handling errors and wrote proper tests