As an user, I want to perform database operations like modifying the DB using jenkins pipeline
So, what's the problem there? There are many Database plugins, and you can always connect to your database using command line build steps