create a new db instance