Config database with file

Signed-off-by: Wadjetz <egor.neon@gmail.com>