Add toArray() and getData() methods to database row class