added file delay as a setting
Added database connection + interaction.