Changed DB connect port to 3306
Fixed array selector error on explode(...)[1]