fixes inserts / updates with null value. fixes #9