basic teacher db fxns