added config
added shell script to run own mongo db
removed functions
add global parameters to routes