Database Code for Load Project

Moved database code into load project, removing
redundant code.
Merge pull request #65 from KSHSK/load-project-db

Database Code for Load Project