configure db and models