Set MediaDB storage path using XDG dirs

Also made a fix to the gobject type being used.