Updated Database helper methods

Added a few more database helper methods
Added Model for projects

Added a new model project
Merge pull request #2 from dsasidhar/projects-and-testing

Projects and testing
Conflict fix