Fixed the last fix for database test settings to work with Python3.