added in reading database vars from external file, need to work final details