change magic database