replaced sqlite with pg for deployment'