use local dir for config by default
move db back to flask-sqlalchemy