Separated db connnection...

...into a separate php file that is included in all files needing it.