new way to get data from DB