Updates virtualenv to include the correct packages, updates readme, and further generalizes database functions for reusability.