fixd bug and switcehd to postgres
fixd bug and switcehd to postgres