change to use DATABASE_URL for all settings database config and add pep8 testeng