added debug setting
reading from db
added home