Not sure if your last question didn't get rearranged?
Can this be done without having db programming?
No, it can't be. It has to be done inside db programming.
This all depends on how you get your trunks from the phone company. If these are just single lines, then no, DIDs won't work. If you have ISDN PRI, then yes, that is a basic feature of most PRI, and you should be able to edit the destination based on call routing table for the trunk group.
If you have T1s (non ISDN), but with some inbound DIDs, then yes, it can be done with the proper setup on the phone company side, and on the PBX side. It isn't easy to get this magic setup, knowing how to talk to the phone company is a must for this to go.
If you have BRI inbound trunks, then it probably can work, depending on the telco, and if they'll support DIDs on BRI or not, or if you can even find anybody there who knows what the *** a BRI trunk is.
This is the sort of thing a knowledgeable tech could probably work with you and the telco to work out fairly quickly.