Added sql inserts.