remove trailing php tag
methods update(), insert() - correct bugs with null values in data