[database] fix error in ws server (access to id instead of _id)