Pleas help: tree problem

Hello, Is it possible to pick up data from the database and use Sortable.create to render the tree.If yes please tell me. Thank you.