fixed the wrong retrun type for database version.

The database version is assumed to be integer. However, I set it
as bool by mistake. So the previous getDBVersion() only returns
0 or 1.