extract ORM specifics
refactor
add serializer