test get data from db