removed debugging console log statement
changed to recieve database string instead of config object