adding db
finishing code to get from db

* run localhost:5000/query to get output it cmdline