Making prepare more configurable

Let db and admin settings be set outside from shell