Fix an issue where doubles would not be correctly calculated because of a comma instead of a period
The target co-ordinate parameters are now also properly written to the SQL as doubles, instead of converting them to integers again and therefore breaking the whole purpose.