Statistics for Effective Use of SSDs in Database Systems