use pg instead of sqlite. Cleanups