adding DBI subroutines