sorted routing - started making Adapter for database