Jgarcia/fix ldb public folder ids

To get new public folder id we have to ask first if the parent folder id is considered a public folder id. This is because for ldb backend there is no such thing as public folder id (there is no such distinction)