Update databat.py

added some functions.