Restored file formatting to PEP 8, added progress meter, added db creation.