added DB boilerplate
minor name changes
minor filename changes
added import Flask
added import os
db stuff