added the database backend for clockInFragment