Try to work through errors in sql inserts