retrieve data from db is working now