handling database, there is a problem with get data