balancing page and database (at input.time)