finish set up for DB