Enteros UpBeat: Optimizing Amortized Costs for SQL Databases