if(m_boxes[box].getPokemon(slot) != null) {
if(m_boxes[box].getPokemon(slot).getDatabaseID() > -1) {
/* This box exists and the pokemon exists in the database */
int id = m_boxes[box].getPokemon(slot).getDatabaseID();
MySqlManager m = new MySqlManager();
if(m.connect(GameServer.getDatabaseHost(),
GameServer.getDatabaseUsername(),
GameServer.getDatabasePassword())) {
m.selectDatabase(GameServer.getDatabaseName());
m.query("DELETE FROM pn_pokemon WHERE id='" + id + "'");
m.close();