implement new client db api
move deck panel to use new client db api