8584f33
Fix typo, variable name and restructure when we commit to the DB These are suggestions made by @bowlofeggs during the review Signed-off-by: Pierre-Yves Chibon <pingou@pingoured.fr>