3.0.5 Neo4j 3.0.5 - Graph Database & Analytics was released 9 September 2016 and now some 7 yr later you want to upgrade to v5? Thats a fairly large jump and with a great number of changes.
As to how to get from v3.0.x to v3.5 and given 3.5.0 was released Neo4j 3.5.0 - Graph Database & Analytics 29 November 2018, and some 5+ yrs ago maybe follow steps as described at Unable to Upgrade to v4.0.0 from v3.0.1 (Community Edition)
Migrate 3.5 - Upgrade and Migration Guide describes how to migrate from v3.5.x to v4.4.x
and then once on v4.4.x you can use
Migrate databases from 4.4 - Upgrade and Migration Guide to migrate from v4.4.x to v5.x
given you have not upgraded the software in 7+ yrs, this is going to take a fair amount of effort