migrate db
add token
fix undefined method