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
Merge branch 'master' of git.mobileinno.com:pclsync into crypto
progress on crypto, working mkdir