Fix passing db spec to execute