DB updates

completed testing and added new features to the database update. Much
standardization with function names. Will update the comments later
Merge pull request #1 from rstith/master

DB updates