moved forward with the database implementation

add a interface to read data from database  and implemented in GuideDataBase 
add customized cursor to get row from database. All test pass ok!