fix db and styles