fixed db functions issue with custom mysql port