Is it possible to modulate the db query?

Is it possible to modulate all the db query? ex) select number from table => select kkk(number) from table

Sorry you are going to have to provide a lot more information than just this question. What is the app, what kind of virtual you are using.