Added version number support for db on openDatabase