start of DB handler