Fixed postgres and added run script