added select function to dbmsFunctions.h