get paramerter from url and delete database