Dynamically Tuning Lsm Tree Based Databases