fix some database and pep8