Fix the database definition for folder column and updated  the functions to support the new column.