Added db scripts for postgresql version.