Adapter for DB