check database version