switch ownership after postgres restart