added layout and css files, updated db, added more logic