before pan plays with database
done with deleting from database