Read data from DB and fix editor