Add callback to sortable to prepare db connection.