add database
add what I've done with ir
delete the directive and turn it in settings controller

Signed-off-by: Raeef Refai <raeef.refai@gmail.com>