Fixed a bug causing ids not being set after a read

Added !== false to strpos statement. Sometimes the INSERT was at the begining of the query returning 0 and not executing the insertQuery utility method.