user id in table beds is an unique key