Working database insertion and queries.
Dates include their time now, Time field is purely for display/IO.