More Alert cont + cleaning & bug fixing

Fixed a bug that was stopping the addition of new items into the
database