Made method public
Fixed DB config