added factories and migrations