Fixed id column of `aec_emergencies` table - altered to auto increment, ajax code fixes

Signed-off-by: plamen911 <plamen@lynxlake.org>