.: Need proposal :

Hi!
Right now I´m working on a system (in PHP). How should I structure the queries in the system. Right now I send all non queries (INSERT, UPDATE and DELETE) to a query-page that handles them. This gives a cleaner code structure in the system but is this the best way? I´m not only thinking about the code structure but also security and effectivity.