migrate db, oa view fixes