broke shared methods into class and instance files, wrote database find method, set up mail defaults