Apple Interview Question

How do you optimize the database?