Retrieving value from the database.

signed-off-by: Rafael Reggiani Manzo <rr.manzo@gmail.com>