Added get_log_entries_by_date functionality to pg