write a part of the dataBase operation