Create cdbifunc.py

This file contains only the functions that will be directly called by buttons/menus/etc. in the user interface. Originally, all functions were going to be placed in one file, but it has been split into 2 files to make the interface designing as simple as possible.