Refactor/db migration

  * refactored migration script
  * removed versions < than 5. it's simply, and no one is using an older version of DB.