Add some tests. Ensure that database scripts stop and fail upon error.