a lot of database configureation and processing