added logic for database request routing
Merge branch 'master' of https://github.com/mdlayher/goat