check for child dir in addDirectory

Checks if the added direcotry is actually only a child dir. Still have
to implement what happens if I try to add an parent dir
check dir equality with QDir
fix sql statement