Revert "reduce getWritableDatabase calls"

This reverts commit ab1ee30934cd775db4427da33ad9ca59dfe9c453.