not need 'prefix' property
add new method to switching model for updating or creating
fixes and new checking statment for empty post data
cleans white space