log time

save logging time to database