In database.py, assert_login_success() is completely redundant as it just calls assert_login_access() and nothing else.
assert_login_success() is also not used anywhere at all aside from tests (test_database_wrapper.py) so I don't see the point of even having it, since it already does something very similar to postgresql_cmd().