Making prepare more configurable

Let db and admin settings be set outside from shell
It doesn't need to be the first parameter anymore ;)