Fixes bugg where adding multiple aliases to the database is possible