Client Participated Model of Sensor Networks for Sensor Databases