#495956 by andypost, cafuego, fiasco: Convert initial queries in system_install() to DBTNG to stop weird inconsistencies on various platforms.