added cleaning db, fixes #22