Cleaned up db:get-subdb a bit, still not right