get_json_handler for new db schema (beginAt => start_timestamp. endAt => end_timestamp)