test of the existance of 'db' directory fixed

when the directory does not exists we should check it's non existence with 'if not os.path.exists('db'):'