Simplify the database calls