Added the cache modulo to access database.

Signed-off-by: Tales Martins <tales.martins@gmail.com>