Finally, and correctly, replaced sqlite with postgres.