According to the hacker (messages with tripcode on TOR imageboard) the DB was using a public IP and he gained access with root:root credentials.
It's more of a question of how many seconds it would take for it to happen.
Let the police investigation find out.