Heavy flavours on the lattice