Effective Use of SSDs in Database Systems