move db setup to wsgi.py