Cleaned up server, now we emit insertUser and insertActions.