implemented insert statements for entities using extends