Retrieve specified item or the next available
removing sql files from the branch