update how user is created, add triggers, improve init script.