code refactoring

Creating a db-configuration lookup table for making readable functions
(oracle, postgres, … etc.)