Ah, yes... good old sqlite... I guess the main reason I go the route I go is that I like writing map/ reduce functions... much more than reorganizing tables because I structured them poorly to start.
In fact, the project I'm on right now at paid job has a lot of structure transformation... and I'm enjoying it so much that I'm not even pining for one of my million side projects.
While it's not the most performant way to do things, I feel like data structure manipulation is one of the easiest to read ways to get from point a to point b.
You probably already thought of this, but just in case, are you switching to normal before calling the command switch panes?
inoremap <silent> <c-h> <esc>:silent call TmuxMove('h')<cr>
Edit: if this doesn't work I give up...