added __init__ to make db a module
made it use a dict
changed for consistency
made some changes to add functionality
don't forget CSRF
Merge branch 'master' of https://github.com/Aeolus0/Flask-apps

Conflicts:
	app/views.py