Fixed missing quotes around the postgresql password.
Check if user or database already exists before creating.