It is probably better to use antother database like MySQL. The problem for the moment is that MySQL is misbehaving when using NodeJS as the server model. See my bug report:
Hopefully this can be fixed soon. If not soon, and you need an immediate solution, then you can use PostgreSQL which is a bit more involved than PHP.
When I have the time, I will produce a video showing how easy it is to use another databse when deploying to Railway.app