if pg_database = @pg.databases[@current_resource.database]
@current_resource.owner(pg_database[:owner])
@current_resource.encoding(pg_database[:encoding])
if pg_database = @pg.databases[@current_resource.database]
@current_resource.owner(pg_database[:owner])
@current_resource.encoding(pg_database[:encoding])