Fixed migrations and added deploy