switched to flask and sql