fixed capitalization of all database table refs