Updated frames to get current time when an action is pressed
updated database methods for handling dates