simplified database routines