DB/EDB helper functions, tidied up xtrabackup account creation etc

Just some bits I added along the way