Added database config file rather than hardcoding