Use discover_runner for testing

- also switched back to sqlite as the postgres db wasn't clearing between test runs for the phaselog.