Fixed startup issue with postgrel database