Added a directory path to directories table, also added in the creation of the parent directory in the database during idea creation