use data stored in database