migrations fix
renamed as it interferes with tests
permissions moved from backend to model
tests