fix parameter ordering for mysql / postgresql

fixes parameter ordering as mentioned in ticket #31