Adding `loss` tables to the risk database
Since the ability of computing loss is being added to the
loss-calculator (only damage was computed before), there needs to be a table to store
loss. There are also functions needed to write the loss values to the database. They will be also added in the MR related to this issue.