Issue #310

Database update script