Fix some warnings during db create.