init and reset postgres scripts