added settings from database and renamed variables
added throwing excpetion
default temp settings
default temp settings