pep8ified
replaced open_database with get_db

same as in add_user.py