fix win
fix
fix
don't use potentially freed memory for debug message
add psync_stat_path call
function to return current mountpoint
remove usage of REPLACE INTO as it is implemented as DELETE+INSERT and DELETE in this case cascades to all foreign keys, which is undesired