Sorry, do not understand what you mean with you need to include your DB. SQLite is installed by default. If you want to use another database, then it should run in a different docker image. You can make sure that they start together and communicate with a docker-compose file. Here an example with postgres.
Generally would be a good starting point for a custom n8n build the n8n-custom docker-file.