Use defined datum transform also in server and fix datum transform related bugs