fix some stuff the pycharm code checker found

it also thought the db param of init_db is not needed, but it is, added a comment there