added time functions to rethinkdb