Adaptation of give_time feature to the new database model.
Merge branch 'master' into bl_tests