Bugfix: Duplicate entry in MySQL