server: remove useless variable
server: prevent having multiple bars with the same id in the database