Reset and configuratioin of database