Added the attribute renaming function in Database and a helper function for it in Relation.