Added saving  of checkin to db