packaging: setup: fix provisioning new database detection

1. check for new database at the designated database and not template1.

2. apply database provisioning before pgpass creation.

3. cleanup logic of detecting database rename.

Bug-Url: https://bugzilla.redhat.com/show_bug.cgi?id=1009599
Change-Id: I6ff8520556aa04c4d9d8d4f1f7c4094b57f8fb11
Signed-off-by: Alon Bar-Lev <alonbl@redhat.com>