Fix initial migrate bug

 * Fix the installed apps order to fix the missing projects table error
   when doing initial migration