imported abstraction for sql models.