Attempt to fix invalid rpmdb issues

- Initial the rpmdb with proper option '--initdb'
- Rebuild rpmdb after reinstalling release rpms inside chroot

Signed-off-by: Dmitriy Kalinin <dmitriy@pivotallabs.com>