How exactly do you optimize the database through the board's CP?

Also, how long did it take?