passing bulb object to api removing db query