-Added conf class
-changes to use db

Signed-off-by: Artyom Borkowsky <artyom_borkowsky@stylesoft.by>