fix css and sql