removed sql inserts