Checked for database file on initialization (die if it's not there)
Added unwanted dir support (don't check in the samples folders)