fix convert class database