update sqlite database and fix the css issues