adding db stuff and wsgi stuff