Added settings database.
Added all basic internal php files.