database: Rename "ref" prefix name to "reference"