Adaptation of give_time feature to the new database model.