add DB query function

getBasicInfo()