Used Flask-RESTful for API

Closes #162
`config.CONFIG_DB` and it should fit in one line :)