Moved to flask framework

Removed db