adds current folder if it's not in the database