Now using pkg-config to detect sqlite and pgsql flags