Setup database.