Default value for pass_gen added.
Added option to disable redirect in refresh_db.