Updated Database config to work on Both Local And Live