Fast Enterprises Interview Question

Describe a database to a child. Write and explain how to optimize a prime number code.