changed datatype date to timestamp, fixed bugs in outgoing methods in db manager