get bed_id from db if access bed choose page