Read single from database if cordova available.