Delete Database and agregar_permisos functions