replae sqlite gem with pg