Trouble with Storing Time in Table DB & Retrieving Output