Added saving to database. Somewhat slow since it waits for update's
response, will fix later on.