Added methods for interacting wit hthe database into flaskr.py; created a TESTING skeleton; and corrected some code inconsistencies.