Corrected DB model and table names, built events API