use local dir for config by default
move db back to flask-sqlalchemy
update flask-admin and move it to a module