possible fix for db exceptions on save