server db route (handlers and schemas)

- use associative arrays to store path/filename
- add more test for schemas