bug 976: Initial version of the database migration script.