partially implemetned services and PostgreSQL queries in mappers