events sending to db, need to work on redirect