Improve db performance for book and user view.