Implement /db/{database} route