database fully updated and some bug are fixed