finally db-to-api package working