Fixed database entry

Made the createTimeEntryIn/Out Work correctly