Built events API, fixed lint, made small DB changes