db prelim setup