Updating DB queries to truncate data
Simplifying $_POST check