use get_date instead of get_local_date to be able to get timestamp, update timestamp on updated content, syntax correction in SQL query