Query database version on boot.