Updating but not inserting on the database php