new changes blocked inserts. changed to field function in mysql