working code till DB and Sample UI