receiving info for buy from database