If you're currently using a database, migrating the contents into SharePoint Online is likely not the best solution. SharePoint Lists are not a relational database.
I would instead suggest looking at Azure SQL PaaS + Azure App Service (Web App). If you went down this route, you would simplify your change as you can continue to use PHP should you wish, but change your provider to SQL from MyPHP.