Check for config, database file/folder permissions

Should close #104.

Signed-off-by: Vivek Rai <vivekraiiitkgp@gmail.com>