Fixed Clock in function

Made it so the first clock in with a new database will not have an
error. Still need to fix clock out.