Issue-379 Database update API

- added error_log() calls to test installing over multiple versions
- fixed bug - move the update database button to the end of the function