reimplemented database row callback system