rq_head function

Get head of db table