move getTransaction to sqlGetTransaction
fix insertion of splits / transactions