Revert "Switch from sqlite3 to postgres"

This reverts commit 0493fbeed8dacde1b0d60ec331656b8507d82498.