move cmdq and sqldb to core

they don't provide client functionality