db size fixes