Updated the 1rm page to use a dao to replace all of the direct sql.