set default only file to true in debug
split functionality into log and database