setup postgresql and clean app for fresh start