Switching database to PostgreSQL

Should be mergeable if desired; more database work is necessary, though.  (Model must be broadened, it now only includes File and User; migrations must be introduced).  Maybe those should be separate tickets?