Change todo example from in memory database to postgres database