Update the database project to reflect svn repo. Fixed some compilation errors and added documentation for the new errors.