Adds a value to the db trace and also returns the entire trace if nothing is specified
database::trace($data = null)