DB updates

completed testing and added new features to the database update. Much
standardization with function names. Will update the comments later