Writing to database for first operation, all required parameters are filled and working