code updated according to the new database