Fixed database issues caused by Devise migration